﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Maquera
{


    public partial class UctrMesaJugador : UserControl
    {
        public UctrMesaJugador()
        {
            InitializeComponent();
        }

        public int Posicion
        {
            set
            {
                int algo = value - 1;
                string Posicion;
                 
                Posicion = Convert.ToString ( algo) ;
                              


                switch (value) 
                
                {
                    case 1:
                        Posicion = "D";
                        break;
                    case 2:
                        Posicion = "P";
                        break;
                    case 3:
                        Posicion = "G";
                        break;
                }
 
                lblPosicion.Text = Posicion  ;


            }
        }

        public int Jugada
        {
            set
            {

                switch (value)
                {
                    case 1:
                        this.BackColor = Color.Red;
                        break;
                    case 2:
                        this.BackColor = Color.Green;
                        break;
                    case 3:
                        this.BackColor = Color.Blue ;
                        break;
                    case 4:
                        this.Enabled = false;
                        break;
                }

            }

        }

    }


}
